package com.info33.platform.doc.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.info33.platform.doc.dto.DocFileSearchDTO;
import com.info33.platform.doc.entity.DocFileShare;
import com.info33.platform.doc.vo.DocFileVO;
import com.info33.platform.system.vo.SysUserVO;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author admin
 */
@Repository
public interface DocFileShareDao extends BaseMapper<DocFileShare>{

	/**
	 * 分页获取我共享的文档
	 * @param page
	 * @param docFileSearchDTO
	 * @param currentUser
	 * @return
	 */
	IPage<DocFileVO> pageSharedFileList(IPage<DocFileVO> page, @Param("docFileSearchDTO") DocFileSearchDTO docFileSearchDTO,
			@Param("currentUser") SysUserVO currentUser);

	/**
	 * 分页获取共享给我的文档
	 * @param page
	 * @param docFileSearchDTO
	 * @param currentUser
	 * @return
	 */
	IPage<DocFileVO> pageShareWithMeFile(IPage<DocFileVO> page, @Param("docFileSearchDTO") DocFileSearchDTO docFileSearchDTO,
			@Param("currentUser") SysUserVO currentUser);


}